package com.lch.base.http.exception;

/**
 * 基础的exception错误类
 *
 * @author lee(29487113@qq.com) on 17/11/1
 */
public class BaseException extends Exception {
    public int mCode;
    public String mMsg;

    public BaseException(Throwable e) {
        super(e);
    }

    public BaseException(int code) {
        mCode = code;
    }

    public BaseException(int code, String msg) {
        mCode = code;
        mMsg = msg;
    }

    public BaseException(Throwable e, int code, String msg) {
        super(e);
        mCode = code;
        mMsg = msg;
    }

    public void setError(int code, String msg) {
        mCode = code;
        mMsg = msg;
    }

    public int getCode() {
        return mCode;
    }

    public void setCode(int code) {
        mCode = code;
    }

    public String getMsg() {
        return mMsg;
    }

    public void setMsg(String msg) {
        this.mMsg = msg;
    }
}
